home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-07 | 3.4 KB | 91 lines | [TEXT/DEDL] |
- INFO ABOUT "EDIT"
- -----------------
-
- "Edit" is a small but useful little Ascii-text editor. You
- can use it for programming or whatever you like. Because it
- uses the Text manager, it can only handle text up to 32 kbyte.
- This program works under system 6.xx and also under system 7.xx.
-
- But it has some other nice features, you may want to use or
- incorporate into your own programming projects. Here is a short
- list of them:
-
- • Online help (sorry, until now only in german)
- • Preview for printing
- • Transfer to other programs (only under finder)
- • macro editor for short amount of text
- • fast find & replace
- • add or cut CR
- • word wrapping
- • editing in insert mode or override mode
- • simple ruler for screen and printing
- • printing with or without title and page#
- • For BASIC programmers there is a whole program shell
- • popup menus for fast macro pasting
- • simple document and memory stats
-
- This is a programming project for self study. I want to give you
- this editor code so you can perhaps learn and adopt some things
- that might be useful for your own programs. If you have any
- suggestions or critics about this program please contact me, I
- always will be glad to get some response from you.
-
-
-
- COMPILING THE PROGRAM
- ---------------------
-
- To compile this program correctly, you first have to copy the
- toolbox function "FN Munger" into ZBasic with the ZMover. This
- function is not included in ZBasic and does most of the work
- for searching and replacing text.
-
- Then load Edit.BAS into ZBasic and choose the configuration
- menu. Here you have to change the following parameters:
-
- Default Variable Type: Integer
- Convert to Upper Case: Yes
- Space Req.After Key Words: Yes
- Array Base 1: No
- Type: APPL
- Creator: DEDL
-
- Then you can compile the program. After this you have to load
- the resource file "Edit.Res" into ResEdit. Also load the new
- program "Edit". Clear the following resources from "Edit":
- "DITL" and "DLOG", you don't need them any more.
-
- At least copy all the resources from "Edit.Res" into "Edit"
- and save the changes.
-
- Now everything should work fine.
-
- SOME TIPS
- ---------
- When you load "Edit.Res" into ResEdit you'll find two resource
- templates, "FORM" and "DEDL". The first resource is created when
- you save a document with "Edit". look at its definition. Perhaps
- you want to change it or add your own things (like word wrap...).
- "DEDL" is simple the owner resource. Please don't change it.
- Most textual items are in special resource files, so you can
- localize this program very easily. If you want to add your own
- help items or translate the given ones into english (I hope thats
- no great problem) you simply can edit the corresponding "TEXT"
- resource. If you look at the "STR#" string resources you'll find
- some containig numbers. If you want to use inches in the ruler
- you should change he number 28 to 72. If you want to change the
- default program font, simply change Monaco into something you like
- and the number 9 into another character size. Numbers 12 and 600
- are for the left and right ruler setting when the program starts up.
- It's up to you to change also this one.
-
- ENDNOTE
- -------
- This program code is my own copyright, but you can freely use it.
- If you give this code away there is only on thing, you should
- remember: Please keep all these files together.
-
- Thanks for your interest. I hope that you will enjoy this neat
- little program.
-
- Detlef Reimers